﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;

namespace Gao.Poker.Domain
{
    public class MemberRecord
    {
        public MemberRecord()
        {
            CreateDt = DateTime.Now;
        }

        /// <summary>
        ///	
        /// </summary>
        public int ID { get; set; }
        /// <summary>
        ///	
        /// </summary>
        public int MemberID { get; set; }
        /// <summary>
        ///	金额
        /// </summary>
        public decimal Money { get; set; }
        /// <summary>
        ///	对应积分
        /// </summary>
        public int Points { get; set; }
        /// <summary>
        /// 类型
        /// </summary>
        public int Type { get; set; }
        /// <summary>
        /// 类型名称
        /// </summary>
        public String TypeName { get; set; }
        /// <summary>
        ///	时间
        /// </summary>
        public System.DateTime CreateDt { get; set; }

        [NotMapped]
        public String Log
        {
            get { return String.Format("于{0}充值 {1} 得到积分 {2} ",CreateDt.ToString("yyyy年MM月dd日"),Money,Points); }
        }
    }
}
